<template>
    <div class="table-container">
        <div class="table-breadcrumb">
            <el-breadcrumb separator-class="el-icon-arrow-right">
                <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
                <el-breadcrumb-item>员工列表</el-breadcrumb-item>
                <el-breadcrumb-item>员工编辑</el-breadcrumb-item>
            </el-breadcrumb>
            </div>
            <div class="table-search">
            <el-row>
                <el-button type="success" @click="toBack" >返回</el-button>
            </el-row>
        </div>
        <div class="content">
            <h3>基本信息</h3>
            <el-form>
                <el-form-item label="工号" label-width="90px">
                    <el-input type="text" v-model="dataInfo.id" readonly></el-input>
                </el-form-item>
                <el-form-item label="姓名" label-width="90px">
                    <el-input type="text" v-model="dataInfo.realname" readonly></el-input>
                </el-form-item>
                <!-- <el-form-item label="微信号" label-width="90px">
                    <el-input type="text" v-model="dataInfo" readonly></el-input>
                </el-form-item> -->
                <el-form-item label="手机号" label-width="90px">
                    <el-input type="text" v-model="dataInfo.mobile" readonly></el-input>
                </el-form-item>
                <!-- <el-form-item label="企业微信号" label-width="90px">
                    <el-input type="text" v-model="dataInfo" readonly></el-input>
                </el-form-item> -->
                <el-form-item label="状态" label-width="90px">
                    <el-radio v-model="radio" label="0">冻结</el-radio>
                    <el-radio v-model="radio" label="1">正常</el-radio>
                </el-form-item>
            </el-form>
        </div>

    </div>
</template>
<script>
export default {
    data(){
        return{
            dataInfo:{},
            radio:'1'
        }
    },
    mounted() {
        let data = this.$route.query.data
        this.dataInfo = JSON.parse(decodeURIComponent(data))
        console.log(this.dataInfo,'++++');
        this.radio = this.dataInfo.status==1?'1':'0'
    },
    methods: {
        // 返回按钮
        toBack(){
            this.$router.back(1)
        },

        // 
    },
}
</script>
<style lang="less" scoped>
@import 'detail.less';
</style>

